.datagrid .panel-body {
  overflow: hidden;
  position: relative;
}
.datagrid-view {
  position: relative;
  overflow: hidden;
}
.datagrid-view1,
.datagrid-view2 {
  position: absolute;
  overflow: hidden;
  top: 0;
}
.datagrid-view1 {
  left: 0;
}
.datagrid-view2 {
  right: 0;
}
.datagrid-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  filter: alpha(opacity=30);
  display: none;
}
.datagrid-mask-msg {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  padding: 30px 5px 30px 70px;
  width: auto;
  height: 16px;
  border-width: 2px;
  border-style: solid;
  display: none;
}
.datagrid-empty {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 25px;
  line-height: 25px;
  text-align: center;
}
.datagrid-sort-icon {
  padding: 0;
  display: none;
}
.datagrid-toolbar {
  height: auto;
  padding: 8px 0;
  border-width:0;
}
.datagrid-btn-separator {
  float: left;
  height: 24px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #fff;
  margin: 2px 1px;
}
.datagrid .datagrid-pager {
  display: block;
  margin: 0;
  padding: 0 10px;
  border-width: 1px 0 0 0;
  border-style: solid;
}
.datagrid .datagrid-pager-top {
  border-width: 0 0 1px 0;
}
.datagrid-header {
  overflow: hidden;
  cursor: default;
  border-width: 0;
  border-style: solid;
}
.datagrid-header-inner {
  float: left;
  width: 10000px;
  background-color: @bg-light-primary;
}
.datagrid-header-row,
.datagrid-row {
  height: 25px;
}
.datagrid-header td,
.datagrid-body td,
.datagrid-footer td {
  border-width: 1px 1px 0 0;
  border-style: solid;
  margin: 0;
  padding: 8px 0;
  text-align: center;
}
.datagrid-body td{
  padding: 20px 0 ;
}
.datagrid-cell,
.datagrid-cell-group,
.datagrid-header-rownumber,
.datagrid-cell-rownumber {
  margin: 0;
  padding: 0 4px;
  white-space: nowrap;
  word-wrap: normal;
  overflow: hidden;
  height: 18px;
  line-height: 18px;
  font-size: 14px;
}
.datagrid-header {
  .datagrid-cell{
    height: auto;
    span{
      font-size: 16px;
      color: @title-thrid;
    }
  }
}

.datagrid-cell-group {
  text-align: center;
  text-overflow: ellipsis;
}
.datagrid-header-rownumber,
.datagrid-cell-rownumber {
  width: 30px;
  text-align: center;
  margin: 0;
  padding: 0;
}
.datagrid-body {
  margin: 0;
  padding: 0;
  overflow: auto;
  zoom: 1;
}
.datagrid-view1 {
  .datagrid-body-inner{
    padding-bottom: 20px;
  }
  .datagrid-body{
    overflow: hidden;
  }
}

.datagrid-footer {
  overflow: hidden;
}

.datagrid-footer-inner {
  border-width: 1px 0 0 0;
  border-style: solid;
  width: 10000px;
  float: left;
}

.datagrid-row-editing {
  .datagrid-cell{
    height: auto;
  }
}

.datagrid-header-check,
.datagrid-cell-check {
  padding: 0 6px;
  width: 27px;
  height: 18px;
  font-size: 1px;
  text-align: center;
  overflow: hidden;
  input{
    margin: 0;
    padding: 0;
    width: 15px;
    height: 18px;
  }
}

.datagrid-resize-proxy {
  position: absolute;
  width: 1px;
  height: 10000px;
  top: 0;
  cursor: e-resize;
  display: none;
}

.datagrid-body{
  .datagrid-editable{
    margin: 0;
    padding: 0;
    table{
      width: 100%;
      height: 100%;
    }
    td{
      border: 0;
      margin: 0;
      padding: 0;
    }
  }
}

.datagrid-view{
  .datagrid-editable-input{    
    margin: 0;
    padding: 2px 4px;
    border: 1px solid #D4D4D4;
    font-size: 12px;
    outline-style: none;
    -moz-border-radius: 0 0 0 0;
    -webkit-border-radius: 0 0 0 0;
    border-radius: 0 0 0 0;
  }
  .validatebox-invalid{
    border-color: #ffa8a8;
  }
}

.datagrid-sort{
  .datagrid-sort-icon{    
    display: inline;
    padding: 0 13px 0 0;
    background: url('images/datagrid_icons.png') no-repeat -64px center;
  }
}

.datagrid-sort-desc{
  .datagrid-sort-icon{    
    display: inline;
    padding: 0 13px 0 0;
    background: url('images/datagrid_icons.png') no-repeat -16px center;
  }
}

.datagrid-sort-asc{
  .datagrid-sort-icon{    
    display: inline;
    padding: 0 13px 0 0;
    background: url('images/datagrid_icons.png') no-repeat 0px center;
  }
}

.datagrid-row-collapse {
  background: url('images/datagrid_icons.png') no-repeat -48px center;
}
.datagrid-row-expand {
  background: url('images/datagrid_icons.png') no-repeat -32px center;
}
.datagrid-mask-msg {
  background: #ffffff url('images/loading.gif') no-repeat scroll 5px center;
}
// .datagrid-header,
// .datagrid-td-rownumber {
//   background-color: #F2F2F2;
//   background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%);
//   background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%);
//   background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%);
//   background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%);
//   background-repeat: repeat-x;
//   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0);
// }
.datagrid-cell-rownumber {
  color: @title-sub;
}
.datagrid-resize-proxy {
  background-color: #bbb;
}
.datagrid-mask {
  background-color: #ccc;
}
.datagrid-mask-msg {
  border-color: #D4D4D4;
}
.datagrid-pager {
  background-color: @bg-lighter-primary;
}
.datagrid-header,
.datagrid-pager,
.datagrid-footer-inner {
  border-color: @bd-primary;
}
.datagrid-header td,
.datagrid-body td,
.datagrid-footer td {
  border-color: @bd-primary;
}
.datagrid-htable,
.datagrid-btable,
.datagrid-ftable {
  color: #272727;
  border-collapse: separate;
  border-bottom: 1px solid @bd-primary;
}
.datagrid-htable{
  height: 60px !important;
}
.datagrid-row-alt {
  background-color: @bg-lighter-primary;
}
.datagrid-row-over,
.datagrid-header td.datagrid-header-over {
  // background: #e6e6e6;
  // color: #00438a;
  cursor: default;
}
.datagrid-row-selected {
  background-color: @bg-selected;
  color: #fff;
  .datagrid-cell-rownumber{
    color: #fff;
  }
}
.datagrid-row-editing {
  .textbox,
  .textbox-text{    
    -moz-border-radius: 0 0 0 0;
    -webkit-border-radius: 0 0 0 0;
    border-radius: 0 0 0 0;
  }
}